home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
a_utils
/
ffccflow
/
ffccflow.lha
/
ffccc+flow
/
ffccc
/
LASTNB.f
< prev
next >
Wrap
Text File
|
1992-07-31
|
577b
|
18 lines
FUNCTION LASTNB(STRING,KFCH,KLCH)
*-----------------------------------------------------------------------
*
* Returns as function value the position of the last non-blank in string
* 'STRING' between KFCH and KLCH.
* This value is KFCH-1 if STRING consists of blanks only.
*
*-----------------------------------------------------------------------
CHARACTER *(*) STRING
LASTNB=KFCH-1
DO 10 I=KLCH,KFCH,-1
IF(STRING(I:I).NE.' ') THEN
LASTNB=I
GOTO 999
ENDIF
10 CONTINUE
999 END